﻿<%@ Page language="c#" Codebehind="forumsStart.aspx.cs" AutoEventWireup="true" Inherits="test.forumsStart" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>forums</title>
		<LINK href="../springofwater.css" type="text/css" rel="stylesheet">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<div align="center">
			<form id="Form1" method="post" runat="server">
				<div align="center">
					<table id="table81" width="80%" border="0">
						<tr>
							<td align="center">
								<% Server.Execute("header.aspx");%>
							</td>
						</tr>
					</table>
				</div>
				<div align="center">
					<table cellSpacing="0" cellPadding="0" width="770" align="center" border="0">
						<tr>
							<td>
								<ul style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 100%; PADDING-TOP: 0px; FONT-FAMILY: SimSun; LIST-STYLE-TYPE: none; BACKGROUND-COLOR: white">
									<li style="DISPLAY: inline">
										<A class="menu" href="index.aspx">泉源首页</A>
									<li style="DISPLAY: inline">
										<A class="selected" href="forumsStart.aspx">泉源论坛</A>
									<li style="DISPLAY: inline">
										<A class="menu" href="bloggermain.aspx">泉源博客</A>
									<li style="DISPLAY: inline">
										<A class="empty" href="jianzao.aspx"></A>
									<li style="DISPLAY: inline">
										<A class="menu" href="dengji.aspx">注册登记</A>
									<li style="DISPLAY: inline">
										<A class="menu" href="women.aspx">关于我们</A>
									<li style="DISPLAY: inline">
										<A class="menu" href="mailto:contact@springofwater.net">联络我们</A>
									</li>
								</ul>
							</td>
						</tr>
					</table>
				</div>
				<FONT face="???">
					<TABLE id="Table1" style="WIDTH: 771px; HEIGHT: 104px" borderColor="#6699cc" cellSpacing="0"
						cellPadding="0" bgColor="#f0f0f0" border="1">
						<TR>
							<td style="HEIGHT: 15px; width: 782px;" colSpan="2">
								<TABLE id="Table2" style="WIDTH: 766px; HEIGHT: 16px" bgColor="#5d9dd1">
									<TR>
										<TD align="center" bgColor="#5d9dd1" colSpan="1" rowSpan="1" style="width: 381px; height: 23px;">&nbsp;
											<P class="size1"><A href="forumsStart.aspx?CategoryID=33&amp;ForumID=11"><FONT color="#ffffff">综合论坛</FONT></A><FONT color="#ffffff">|
												</FONT><A href="forumsStart.aspx?CategoryID=48&amp;ForumID=15"><FONT color="#ffffff">祷告园地</FONT></A><FONT color="#ffffff">
												</FONT>
												
												<% if (sow.EmailDataAccess.hasUserRole(Request.Cookies["email"],5)) { %> 			
												  <FONT color="#ffffff"> | </font> 
												
												<FONT color="#ffffff"> <A href="forumsStart.aspx?CategoryID=53&amp;ForumID=16"><FONT color="#ffffff">同工园地</FONT></A>
												<% } %>
												
												<FONT color="#ffffff">|
												</FONT><A href="bloggerweb.aspx?UserID=153"><FONT color="#ffffff">国内论坛</FONT></A><FONT color="#ffffff"></FONT></P>
										</TD>
				 
										<TD vAlign="middle" align="right" rowSpan="" style="width: 382px; height: 23px"><FONT color="#ffff66" size="2">
                                            <table>
                                                <tr>
                                                    <td style="width: 88px; height: 26px">
                                                        <span style="font-size: 10pt; color: green">
                                                            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" ForeColor="GreenYellow"><FONT color=GreenYellow>回旧版</FONT></asp:LinkButton></span></td>
                                                    <td style="width: 88px; height: 26px;">
                                                        <span style="font-size: 10pt; color: #ffff66">版主：晓恩</span></td>
                                                    <td style="width: 88px; height: 26px">
                                                        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="管理文章" /></td>
                                                    <td align="right" style="width: 100px; height: 26px;">
                                                        <asp:Button ID="Button1" runat="server" BorderStyle="Ridge" OnClick="Button1_Click"
                                                            Text="发表文章" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </FONT><FONT color="#009900"></FONT>
										</TD>
									</TR>
								</TABLE>
								</td>
						</TR>
                        <tr>
                            <td align="center" colspan="2" style="width: 390px; background-color: #f0f0f0; height: 289px;" valign="middle">
                                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                    Width="771px" OnPageIndexChanging="GridView1_PageIndexChanging" Font-Size="X-Small" ForeColor="Navy" PageSize="50" BackColor="WhiteSmoke" OnRowDataBound="GridView1_RowDataBound" HorizontalAlign="Center">
                                    <Columns>
                                        <asp:TemplateField>
                                            <EditItemTemplate>
                                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# DisplayStatus(Convert.ToString(Eval("status"))) %>'></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" Text='<%# DisplayStatus(Convert.ToString(Eval("status"))) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle Width="30px" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="标题">
                                            <ItemStyle Width="380px" />
                                            <HeaderStyle Font-Size="X-Small" ForeColor="#0000C0" />
                                            <ItemTemplate>
                                                <asp:HyperLink ID="HyperLink2" runat="server" ForeColor=Navy Font-Underline=false
                                                      NavigateUrl='<%# Eval("postID", "forumsContent.aspx?postID={0}") %>'
                                                      Text='<%# Eval("Subject") %>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:HyperLinkField DataTextField="NickName" HeaderText="作者" >
                                            <ItemStyle HorizontalAlign="Center" ForeColor="Black" />
                                        </asp:HyperLinkField>
                                        <asp:BoundField DataField="NumberOfVisits" HeaderText="点击" >
                                            <ItemStyle HorizontalAlign="Center" ForeColor="Black" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Replies" HeaderText="回复">
                                            <HeaderStyle Font-Size="X-Small" ForeColor="#0000C0" />
                                            <ItemStyle HorizontalAlign="Center" ForeColor="Black" />
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="回复人">
                                            <ItemStyle Width="70px" />
                                            <ItemTemplate>
                                              <asp:HyperLink ID="HyperLink5" runat="server" ForeColor=Navy Font-Underline=false
                                                      NavigateUrl='<%# "forumsContent.aspx?postID=" +DisplayReplyPostID(Convert.ToString(Eval("ReplyDateName"))) %>'
                                                      Text='<%# DisplayReplyName(Convert.ToString(Eval("ReplyDateName")), Convert.ToString(Eval("NickName"))) %>'></asp:HyperLink>
                                              </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="更新时间">
                                            <HeaderStyle Font-Size="X-Small" ForeColor="#0000C0" />
                                            <ItemTemplate>
                                          
                                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="" Text='<%# DisplayReplyTime(Convert.ToString(Eval("ReplyDateName")), Convert.ToString(Eval("CreateDate")))%>'></asp:HyperLink>
                                            
                                            </ItemTemplate>
                                            <ItemStyle ForeColor="Black" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <PagerSettings Position="TopAndBottom" FirstPageText="&lt;font size=2&gt;首页&lt;/font&gt;"  LastPageText="&lt;font size=2&gt;尾页&lt;/font&gt;" Mode="NumericFirstLast" NextPageText="下一页" PreviousPageText="上一页" />
                                    <HeaderStyle BackColor="LightSteelBlue" />
                                    <AlternatingRowStyle BackColor="AliceBlue" />
                                    <PagerStyle Font-Size="X-Small" BackColor="White" ForeColor="Navy" />
                                </asp:GridView>
                            </td>
                        </tr>
                         </table>
                     
					 
			</form>
		</div>
		<DIV align="center">
			<table id="table3" width="80%" border="0" style="font-size: 12pt">
				<tr>
					<td align="center">
						<% Server.Execute("tail.aspx");%>
					</td>
				</tr>
			</table>
		</DIV>
	</body>
</HTML>
